[heap]
struct MyStruct {
mut:
	n int
}

fn (mut a MyStruct) f() &MyStruct {
	// do something with a
	return &a // would return address of borrowed object
}

// fn (mut a MyStruct) g() &MyStruct {
fn (a MyStruct) g() &MyStruct {
	// do something with a
	return &a // would return address of borrowed object
}

fn main() {
	mut x := MyStruct{}
	x.f().g()
}
